from selenium.webdriver.firefox.webdriver import WebDriver


class kunshanlogin:
    def __init__(self, driver: WebDriver):
        self.driver = driver  # type:selenium.webdriver.firefox.webdriver
    def username(self):
        username=self.driver.find_element_by_id("username")
        return username
    def password(self):
        password=self.driver.find_element_by_id("password")
        return password
    def loginBtn(self):
        loginBtn=self.driver.find_element_by_xpath("//*[@id=\"root\"]/div/div/div[2]/form/div[3]/div/div/div/button")
        return loginBtn